﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_ProductGroup : DataObject
    {
        [Column]
        public string Old_Material_Number { get { return _Old_Material_Number; } set { _Old_Material_Number = value; EntityState.FieldChange("Old_Material_Number"); } }
        private string _Old_Material_Number;
        public static FieldInfo old_material_number = new FieldInfo("m_ProductGroup", "Old_Material_Number");

        [Column]
        public string Product_Group { get { return _Product_Group; } set { _Product_Group = value; EntityState.FieldChange("Product_Group"); } }
        private string _Product_Group;
        public static FieldInfo product_group = new FieldInfo("m_ProductGroup", "Product_Group");

        [Column]
        public string Product_Group_Description { get { return _Product_Group_Description; } set { _Product_Group_Description = value; EntityState.FieldChange("Product_Group_Description"); } }
        private string _Product_Group_Description;
        public static FieldInfo product_group_description = new FieldInfo("m_ProductGroup", "Product_Group_Description");

        [Column]
        public string SubBrand { get { return _SubBrand; } set { _SubBrand = value; EntityState.FieldChange("SubBrand"); } }
        private string _SubBrand;
        public static FieldInfo subbrand = new FieldInfo("m_ProductGroup", "SubBrand");

        [Column]
        public string SubBrand_Description { get { return _SubBrand_Description; } set { _SubBrand_Description = value; EntityState.FieldChange("SubBrand_Description"); } }
        private string _SubBrand_Description;
        public static FieldInfo subbrand_description = new FieldInfo("m_ProductGroup", "SubBrand_Description");

        [Column]
        public string Brand { get { return _Brand; } set { _Brand = value; EntityState.FieldChange("Brand"); } }
        private string _Brand;
        public static FieldInfo brand = new FieldInfo("m_ProductGroup", "Brand");

        [Column]
        public string Brand_Description { get { return _Brand_Description; } set { _Brand_Description = value; EntityState.FieldChange("Brand_Description"); } }
        private string _Brand_Description;
        public static FieldInfo brand_description = new FieldInfo("m_ProductGroup", "Brand_Description");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("m_ProductGroup", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("m_ProductGroup", "Status");
    }
}
